package com.cn.demo4.service.impl;

import com.cn.demo4.dao.OnlineDao;
import com.cn.demo4.dao.impl.OnlineDaoImpl;
import com.cn.demo4.model.OnlineModel;
import com.cn.demo4.service.IOnlineService;
import com.cn.demo4.util.Tool;
import redis.clients.jedis.Jedis;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Administrator
 */
public class OnlineServiceImpl implements IOnlineService {
    @Override
    public List<OnlineModel> findAll() {
        OnlineDao onlineDao = new OnlineDaoImpl();
        return onlineDao.findAll();
    }

    @Override
    public List<OnlineModel> getOnlineModelListForHome() {
        OnlineDao onlineDao = new OnlineDaoImpl();
        return onlineDao.getOnlineModelListForHome();
    }
}
